<template>
  <div class="dashboard-editor-container">

    <!-- <panel-group @handleSetLineChartData="handleSetLineChartData" /> -->

    <!-- <el-row :gutter="32" style="background:#fff;padding:16px 16px 0;margin-bottom:32px;"> -->
    <el-row :gutter="32">
      <el-col :xs="24" :sm="24" :lg="8" style="padding-left: 10px;padding-right: 10px;">
        <div class="chart-wrapper">
          <pies-chart />
        </div>
      </el-col>
      <el-col :xs="24" :sm="24" :lg="16" style="padding-left: 10px;padding-right: 10px;">
        <div class="chart-wrapper">
          <line-chart/>
        </div>
      </el-col>
    </el-row>

    <el-row :gutter="32">
      <el-col :xs="24" :sm="24" :lg="8" style="padding-left: 10px;padding-right: 10px;">
        <div class="chart-wrapper">
          <bar-chart />
        </div>
      </el-col>
      <el-col :xs="24" :sm="24" :lg="8" style="padding-left: 10px;padding-right: 10px;">
        <div class="chart-wrapper">
          <pie-chart />
        </div>
      </el-col>
      <el-col :xs="24" :sm="24" :lg="8" style="padding-left: 10px;padding-right: 10px;">
        <div class="chart-wrapper">
          <raddar-chart />
        </div>
      </el-col>
    </el-row>

    
  </div>
</template>

<script>
import piesChart from './dashboard/PiesChart'
// import PanelGroup from './dashboard/PanelGroup'
import LineChart from './dashboard/LineChart'
import BarChart from './dashboard/BarChart'
import PieChart from './dashboard/PieChart'
import RaddarChart from './dashboard/RaddarChart'
// const lineChartData = {
//   newVisitis: {
//     moneyData: [100, 120, 161, 134, 105, 160, 165],
//     countData: [120, 82, 91, 154, 162, 140, 145]
//   },
//   messages: {
//     moneyData: [200, 192, 120, 144, 160, 130, 140],
//     countData: [180, 160, 151, 106, 145, 150, 130]
//   },
//   purchases: {
//     moneyData: [80, 100, 121, 104, 105, 90, 100],
//     countData: [120, 90, 100, 138, 142, 130, 130]
//   },
//   shoppings: {
//     moneyData: [130, 140, 141, 142, 145, 150, 160],
//     countData: [120, 82, 91, 154, 162, 140, 130]
//   }
// }

export default {
  name: 'Index',
  components: {
    piesChart,
    // PanelGroup,
    LineChart,
    BarChart,
    PieChart,
    RaddarChart,
  },
  data() {
    return {
      //lineChartData: lineChartData.newVisitis
    }
  },
  methods: {
    // handleSetLineChartData(type) {
    //   this.lineChartData = lineChartData[type]
    // }
  }
}
</script>

<style lang="scss" scoped>
.dashboard-editor-container {
  padding: 20px 20px 0 20px;
  position: relative;

  .chart-wrapper {
    background: #fff;
    padding: 20px 20px 0;
    margin-bottom: 20px;
  }
}

@media (max-width:1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>
